<template>
  <div style="padding: 10px;">
    <Row label="字段标题" :required="true">
      <a-input v-model="fieldConfig.label"/>
    </Row>

    <Row label="字段名称" :required="true">
      <a-input v-model="fieldConfig.fieldName"/>
    </Row>

    <Row label="编码前缀" :required="true">
      <a-input v-model="fieldConfig.exts.prefix"/>
    </Row>
  </div>
</template>
<script>
import {createProps} from '@/utils';
import {createField, createFormDefinition} from '@/components/hhd/design/FormDesigner/types';
import Row from '@/components/hhd/design/FormDesigner/base/Row.vue';
import FieldValueFormulaGroups
  from '@comp/hhd/design/FormDesigner/field/comps/form/FieldValueFormulaGroups/FieldValueFormulaGroups.vue';

export default {
  name: 'FormCodeConfig',
  components: {FieldValueFormulaGroups, Row},
  props: {
    formDefinition: createProps(Object, createFormDefinition),
    fieldConfig: createProps(Object, createField),
  }
};
</script>
